// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.statement.SQLColumnDefinition;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MysqlCreateFullTextDictionaryStatement.h"
#include "../../../../ast/SQLName.h"
#include "../../../../ast/statement/SQLColumnDefinition.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLName_ptr MysqlCreateFullTextDictionaryStatement::getName()
{
  return name;
}

void MysqlCreateFullTextDictionaryStatement::setName(SQLName_ptr name)
{
  if (name != nullptr)
  {
    name->setParent(SharedObject(MysqlCreateFullTextDictionaryStatement));
  }
  this->name = name;
}

SQLColumnDefinition_ptr MysqlCreateFullTextDictionaryStatement::getColumn()
{
  return column;
}

void MysqlCreateFullTextDictionaryStatement::setColumn(SQLColumnDefinition_ptr column)
{
  this->column = column;
}

string_ptr MysqlCreateFullTextDictionaryStatement::getComment()
{
  return comment;
}

void MysqlCreateFullTextDictionaryStatement::setComment(string_ptr comment)
{
  this->comment = comment;
}

// @Override
void MysqlCreateFullTextDictionaryStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MysqlCreateFullTextDictionaryStatement)))
  {
    acceptChild(visitor, name);
    acceptChild(visitor, column);
  }
  visitor->endVisit(SharedObject(MysqlCreateFullTextDictionaryStatement));
}
